package com.example.videoworks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Lily
 * @since 2023-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work")
@ApiModel(value="Work对象", description="")
public class Work implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "workId", type = IdType.AUTO)
    private String workId;

    @TableField("ordering")
    private Integer ordering;

    @TableField("title")
    private String title;

    @TableField("startYear")
    private String startYear;

    @TableField("type")
    private String type;

    @TableField("region")
    private String region;

    @TableField("language")
    private String language;

    @TableField("workIntroduction")
    private String workIntroduction;

    @TableField("url")
    private String url;

    @TableField("workImg")
    private String workImg;

    @TableField("genres")
    private String genres;

    @TableField("rating")
    private String rating;

    @TableField("runtimeMinutes")
    private Integer runtimeMinutes;

    @TableField(exist = false)
    private Integer rank;
    @TableField(exist = false)
    private List<Principal> principalList;


}
